package com.zqxq.common.enums;

public enum AutoMarketEnums {

    S_REGISTER("1","注册成功"),
    S_INVITE("2","邀请成功"),
    S_LOSS7DAYS("3","流失7日"),
    S_LOSS15DAYS("4","流失15日"),
    S_OPENING_VIP("5","开通VIP"),
    S_INVITE_REWARDS("6","邀请奖励成功"),
    S_FIVEDAYS_FROMDUEDATE("7","距到期日5日"),
    S_EXPIRED_ONTHATDATE("8","当日到期"),
    S_SEVENDAYS_AFTEREXPIRATION("9","过期第7天"),
    S_SUCCESSFUL_REGISTRATION("10","报名成功"),
    S_GENERATING_CASHCONSUMPTION("11","产生现金消费"),
    S_DRAWCASH("12","提现"),
    J_LOSS7DAYS("13","流失7日"),
    J_LOSS15DAYS("14","流失15日"),
    J_INVITE("15","邀请成功"),
    J_PUBLISHING_ACTIVITIES("16","发布活动"),
    J_ISSUE_COUPONS("17","优惠券发放"),
    J_COMMUNITY_INTERACTION("18","社区互动"),
    J_GET_SHELLFISH_COINS("19","获得贝壳币"),
    J_CONSUME_SHELLFISH_COINS("20","消费贝壳币"),
    J_GENERATING_CASH_CONSUMPTION("21","产生现金消费"),
    M_SHOPPINGMALL_CONSUMPTION("22","商城消费"),
    M_ISSUE_COUPONS("23","优惠券发放"),
    M_COMMUNITY_INTERACTION("24","社区互动"),
    M_PUBLISHING_ACTIVITIES("25","发布活动"),
    M_SUCCESSFUL_REGISTRATION("26","报名成功"),
    M_ACHIEVE_SUCCESS("27","达成成就"),
    M_REGISTER("28","注册成功"),
    M_REGISTER_NOMOBILE("29","注册成功"),
    M_BUY_MALL_PRODUCT("30","购买商城商品"),
    J_REGISTER_NOMOBILE("31","注册成功"),
    M_SEND_COUPON("32","发送优惠券成功"),
    J_SEND_COUPON("33","发送优惠券成功"),
    M_THREEDAYS_FROMDUEDATE_COUPON("34","优惠券距到期日3日"),
    J_THREEDAYS_FROMDUEDATE_COUPON("35","优惠券距到期日3日"),
    J_TODAY_NOT_SIGN("36","当天没有签到的"),
    J_TODAY_SIGN("37","已经签到的"),
    M_ASSEMBLE_PAY_SUCCESS("38","拼团付费成功"),
    M_ASSEMBLE_SUCCESS("39","拼团成功");
    private String code;
    private String message;

    AutoMarketEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static AutoMarketEnums getAutoMarketsByCode(int code){
        for (AutoMarketEnums enums: AutoMarketEnums.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
